package com.tjbaobao.videoplayol.activity;

import android.os.Bundle;

import com.tjbaobao.framework.entity.ui.TitleBarInfo;
import com.tjbaobao.framework.tjbase.TJActivity;
import com.tjbaobao.framework.ui.BaseTitleBar;
import com.tjbaobao.videoplayol.R;
import com.tjbaobao.videoplayol.base.AppActivity;

/**
 *
 * Created by TJbaobao on 2018/1/12.
 */

public class VideoDefActivity extends AppActivity {
    @Override
    protected void onInitValues(Bundle bundle) {

    }

    @Override
    protected void onInitView() {
        setContentView(R.layout.video_def_activity_layout);
    }

    @Override
    protected void onInitTitleBar(BaseTitleBar baseTitleBar) {
        baseTitleBar.setTitle("视频详情");
        baseTitleBar.addImageToLeft(R.drawable.fw_ic_back);
        baseTitleBar.addImageToRight(R.drawable.ic_ref);
      }

    @Override
    protected void onLoadData() {

    }

    @Override
    public <V extends TitleBarInfo.BaseView> void onTitleBarClick(int layoutType, int position, V info) {
        if(layoutType==BaseTitleBar.LAYOUT_LEFT)
        {
            if(position==0)
            {
                this.finish();
            }
        }
    }
}
